
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type CapitalFlowRequest struct {

	FlowId string `json:"flow_id" form:"flow_id"`

	OrderId string `json:"order_id" form:"order_id"`

	Uid string `json:"uid" form:"uid"`

	Nickname string `json:"nickname" form:"nickname"`

	Phone string `json:"phone" form:"phone"`

	Price string `json:"price" form:"price"`

	TradingType string `json:"trading_type" form:"trading_type"`

	PayType string `json:"pay_type" form:"pay_type"`

	Mark string `json:"mark" form:"mark"`

	AddTime string `json:"add_time" form:"add_time"`

}

func (r *CapitalFlowRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *CapitalFlowRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"flow_id": "required",

		"order_id": "required",

		"uid": "required",

		"nickname": "required",

		"phone": "required",

		"price": "required",

		"trading_type": "required",

		"pay_type": "required",

		"mark": "required",

		"add_time": "required",

	}
}

func (r *CapitalFlowRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *CapitalFlowRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *CapitalFlowRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
